<?php
/**
 * Created by PhpStorm.
 * User: kevin
 * Date: 2015/6/30
 * Time: 20:18
 */
namespace Home\Controller;
use Think\Model;
class DepartmentModel extends Model{
    /*
     * 自动补充
     */
    protected $_auto = array(

    );

    /*
     * 自动验证
     */
    protected $_validate = array(
        array('')
    );


    public function register(){
        if($Department = $this->create()){

        }else{
            $this->error($Department->getError());
        }

    }
}